/* user.js */
import http from "@/utils/http";

export const userApi = {
  /**
   * 通过用户名获取用户头像地址
   * @param {} username
   */
  getTheAvatarThroughTheUsername(username) {
    return http.get("/user/v1/users/getTheAvatar", username);
  },
  /**
   * 获取当前登录用户的基本信息
   */
  getTheBasicInformationOfTheCurrentUser() {
    return http.get("/user/v1/users/getUserInfo");
  }
};